import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login';
import Home from '../components/home';
import EmpList from '../components/BaseInfo/empList';
import SysDict from '../components/BaseInfo/sysDict';
import Catalog from '../components/BaseInfo/catalog';
import SysUser from '../components/BaseInfo/sysUser';
import Car from '../components/assets/car' ;
import Finance from '../components/assets/finance';
import Normal from '../components/assets/normal';
import Permanent from '../components/assets/permanent';
import Cartrans from '../components/trans/cartrans';
import Financetrans from '../components/trans/financetrans';
import Normaltrans from '../components/trans/normaltrans';
import Permanenttrans from '../components/trans/permanenttrans';
import helloworld from '../components/helloworld/helloworld';




Vue.use(Router)

export default new Router({
  
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      hidden: true
    }, {
      path: '/home',
      name: '主页',
      component: Home,
      hidden: true,
      meta: {
        requireAuth: true,
        keepAlive: false
      },
      
      children: [
        {
          path: '/sysDict',
          name: '数据字典管理页面',
          component: SysDict
        },
        {
          path: '/empList',
          name: '公司职员管理页面',
          component: EmpList
        },
        {
          path:'/catalog',
          name: '资产信息管理页面',
          component:Catalog
        },
        {
          path:'/sysUser',
          name: '系统用户管理页面',
          component:SysUser
        },
        {
          path:'/car',
          name: '车辆资产管理页面',
          component:Car
        },
        ,
        {
          path:'/permanent',
          name: '不动产管理页面',
          component:Permanent
        },
        {
          path:'/finance',
          name: '金融资产管理页面',
          component:Finance
        },
        {
          path:'/normal',
          name: '普通资产管理页面',
          component:Normal
        },
        {
          path:'/cartrans',
          name: '车辆资产流转页面',
          component:Cartrans
        },
        {
          path:'/financetrans',
          name: '金融资产流转页面',
          component:Financetrans
        },
        {
          path:'/normaltrans',
          name: '普通资产流转页面',
          component:Normaltrans
        },
        {
          path:'/permanenttrans',
          name: '不动产流转页面',
          component:Permanenttrans
        },
        {
          path:'/helloworld',
          name: '首页导航',
          component:helloworld
        },
      ]
    }
  ]
})

